#ifndef AUTORESPONDER_H
#define AUTORESPONDER_H

#include "qextserialport.h"
#include "topo.h"

#include <QMap>
#include <QObject>
#include <minwindef.h>

class AutoResponder
{


   static  AutoResponder * responder;

public:
    explicit AutoResponder( );

  static  AutoResponder * Instance();

    QMap<int, TOPO_NODE *>  test_node;
    UINT test_online[8];
    int test_count;

    void create_test_data();

    QByteArray on_queryed(	QextSerialPort* myCom,QByteArray query_str);

    void  remove_node(int node_id);

    void  remove_phy(int node_id, int phy_id);

    void  remove_phy_target(int node_id, int phy_id);
signals:
};

#endif // AUTORESPONDER_H
